<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>{$Think.config.system_name}</title>
	<!-- Layui Styles-->
	<link href="__LAYERUI__/css/layui.css" rel="stylesheet" />
	<!-- JS Scripts-->
	<!-- jQuery Js -->
	<script src="__ASSETS__/js/jquery-1.10.2.js"></script>
	<script src="__ASSETS__/js/xm-select.js"></script>
	<!-- LayerUI Js -->
	<script src="__LAYERUI__/layui.js"></script>
	<script>
	layui.use('laydate', function(){
	  var laydate = layui.laydate;
	  
	  //执行一个laydate实例
	  laydate.render({
		elem: '#date', //指定元素
		trigger: 'click'
	  });
	  laydate.render({
		elem: '#addtime_fromdate',//指定元素
		type: 'datetime',
		trigger: 'click'
	  });
	  laydate.render({
		elem: '#addtime_todate',//指定元素
		type: 'datetime',
		trigger: 'click'
	  });
	  laydate.render({
	    elem: '#laydate',//指定元素
	    type: 'date',
		trigger: 'click'
	  });
	  lay('.mdate').each(function(){
		laydate.render({
		  elem: this
		  ,trigger: 'click'
		});
	  });
	});
	//选择checkbox
	function checkall(){
		var el=document.getElementsByTagName('input');
		for(var i = 0;i < el.length;i++){
			if(el[i].type=="checkbox"){
				el[i].checked==true?el[i].checked=false:el[i].checked=true;
			}
		}
	}
	</script>
</head>
<body><div style="margin:20px;">